<template>
 <div>
     <div class="main">
       <h1 class="loading"  v-if="arr.length==0">页面正在赶来的路上,请稍等...</h1>
         <div class="main-con" v-else>
           <h1>{{celebrityName}}参加的演出</h1>
             <ul>
                 <li  v-for="v in manceList" :key = "v.id">
                    <img :src="arr">
                    <div class="con-right">
                    <div class="title">{{dakaMovieTitle}}</div>
                    <p>{{dakaMovieTime}}</p>
                    <p>{{dakaMovieAds}}</p>
                    <div class="ticketing">
                            <span>{{ticketing}}</span>
                        </div>
                    </div>
                 </li>
             </ul>
         </div>
     </div>
     </div>   
</template>
<script>
import getLinkData from "@/api/getLinkData.js";
export default {
  data() {
    return {
      arr: "",
      celebrityName: "",
      dakaMovieTitle: "",
      dakaMovieTime: "",
      dakaMovieAds: "",
      ticketing: "",
      manceList: []
    };
  },
  mounted() {
    getLinkData("/apidl/dakaMovieDec", "GET", {
      id: this.$route.query.id
    }).then(res => {
      this.celebrityName = res.data.daka[0].celebrityName;
      this.arr = res.data.manceList[0].dakaMovielmg;
      this.dakaMovieTitle = res.data.manceList[0].dakaMovieTitle;
      this.dakaMovieTime = res.data.manceList[0].dakaMovieTime;
      this.dakaMovieAds = res.data.manceList[0].dakaMovieAds;
      this.ticketing = res.data.manceList[0].ticketing;
      this.manceList = res.data.manceList;
    });
  }
};
</script>
<style scoped>
.loading {
  margin: 2rem auto;
  text-align: center;
}
.main {
  width: 100%;
  background: #ffffff;
  padding-top: 0.6rem;
  border-radius: 0.4rem 0.4rem 0 0;
  position: relative;
  top: -0.5rem;
}
.main-con {
  width: 90%;
  margin: auto;
  /* background-color: cadetblue; */
}
h1 {
  font-size: 0.4rem;
  font-weight: bold;
}
.main-con img {
  height: 30%;
  border-radius: 0.3rem;
  /* background-color: aquamarine; */
}
ul li {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  /* background: #000; */
}
ul li img {
  width: 2.8rem;
}
.con-right {
  width: 52%;
  height: 2.6rem;
  /* background-color: aquamarine; */
  position: relative;
  margin-left: 0.1rem;
}
.con-right .title {
  font-size: 0.34rem;
  font-weight: bold;
  padding-bottom: 0.2rem;
}
.con-right p {
  font-size: 0.24rem;
  margin-top: 0.2rem;
  color: rgb(136, 136, 136);
}

.con-right .ticketing {
  position: absolute;
  bottom: 0;
}
.ticketing span {
  display: block;
  position: absolute;
  font-size: 0.24rem;
  width: 1.2rem;
  height: 0.33rem;
  text-align: center;
  line-height: 0.33rem;
  color: red;
  border-radius: 0.1rem;
  background-color: antiquewhite;
  bottom: -1rem;
}
</style>